<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/19/0019
 * Time: 14:41
 */

namespace App\Transformers;


use App\Models\Good;
use League\Fractal\TransformerAbstract;

class AuctionTramsformer extends TransformerAbstract
{
    public function transform(Good $good){
        return [
            'id' => $good->id,
            'goods_name' => $good->goods_name,
            'market_price' => $good->market_price,
            'img' => $good->img,
        /*    'created_at' => $good->created_at->toDateTimeString(),
            'updated_at' => $good->updated_at->toDateTimeString(),*/
        ];
    }
}